home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Resources
/
Burning & Media
/
GB-PVR 1.2.13
/
GBPVR10213.msi
/
Cabs.w1.cab
/
GuideListingDiv.cs652
< prev
next >
Wrap
Text File
|
2007-01-28
|
1KB
|
60 lines
/// <summary>
/// This object is a Div tag that is used in displaying guide information
/// </summary>
namespace gbweb.classes
{
public class GuideListingDiv
{
private const string beginDiv = "<div ";
private const string beginDivId = " id=\"";
private string divId = "";
private const string endDivId = "\"";
private const string beginDivClass = " class=\"";
private string divClass = "";
private const string endDivClass = "\"";
private const string endDiv = ">";
private const string closeDiv = "</div>";
public GuideListingDiv()
{
}
public GuideListingDiv(string DivId, string DivClass)
{
divId = DivId;
divClass = DivClass;
}
public string getEndDiv()
{
return closeDiv;
}
public string getStartDiv()
{
string divStart = string.Empty;
divStart += beginDiv;
if (divId != "")
{
divStart += beginDivId;
divStart += divId;
divStart += endDivId;
}
if (divClass != "")
{
divStart += beginDivClass;
divStart += divClass;
divStart += endDivClass;
}
divStart += endDiv;
return divStart;
}
}
}